package com.itheima.xiancheng;

import java.util.concurrent.FutureTask;

public class My {
    public static void main(String[] args) {

        MyCallable my=new MyCallable();
        FutureTask<String>  ft=new FutureTask<String>(my);
        Thread th=new Thread(ft);
        th.setName("飞机");
    //    System.out.println( th.getPriority());
       // th.setPriority(6);

        th.start();
        FutureTask<String>  ft1=new FutureTask<String>(my);
        Thread th1=new Thread(ft1);
        th1.setName("坦克");
      //  System.out.println(th1.getPriority() );
        th1.start();
      //  th1.setPriority(7);
    }
}
